package com.example.demo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cx
 * @since 2019-04-22
 */
@TableName("ia_wx_tmpl_msg")
public class IaWxTmplMsg extends Model<IaWxTmplMsg> implements Serializable{

    private static final long serialVersionUID = 1L;

	private String id;
	@TableField("template_id")
	private String templateId;
	private String title;
	private String url;
	private String data;
    /**
     * 1:所有人，2：非会员，3:正式会员 
     */
	@TableField("to_user")
	private Integer toUser;
    /**
     * 推送模板：0：资料领取通知 ，1：服务状态提醒
     */
	@TableField("push_tmpl")
	private String pushTmpl;
    /**
     * 0-不推送，1-定时推送，2-推送中，3-暂停推送，4-取消推送，5-推送结束
     */
	private Integer status;
    /**
     * 定时：起始推送时间
     */
	@TableField("start_time")
	private Date startTime;
    /**
     * 推送结束时间
     */
	@TableField("end_time")
	private Date endTime;
    /**
     * 成功推送数量
     */
	@TableField("success_num")
	private Long successNum;
    /**
     * 推送失败数量
     */
	@TableField("error_num")
	private Long errorNum;
	@TableField("create_time")
	private Date createTime;
	@TableField("company_ids")
	private String companyIds;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public Integer getToUser() {
		return toUser;
	}

	public void setToUser(Integer toUser) {
		this.toUser = toUser;
	}

	public String getPushTmpl() {
		return pushTmpl;
	}

	public void setPushTmpl(String pushTmpl) {
		this.pushTmpl = pushTmpl;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Long getSuccessNum() {
		return successNum;
	}

	public void setSuccessNum(Long successNum) {
		this.successNum = successNum;
	}

	public Long getErrorNum() {
		return errorNum;
	}

	public void setErrorNum(Long errorNum) {
		this.errorNum = errorNum;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCompanyIds() {
		return companyIds;
	}

	public void setCompanyIds(String companyIds) {
		this.companyIds = companyIds;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "IaWxTmplMsg{" +
			", id=" + id +
			", templateId=" + templateId +
			", title=" + title +
			", url=" + url +
			", data=" + data +
			", toUser=" + toUser +
			", pushTmpl=" + pushTmpl +
			", status=" + status +
			", startTime=" + startTime +
			", endTime=" + endTime +
			", successNum=" + successNum +
			", errorNum=" + errorNum +
			", createTime=" + createTime +
			", companyIds=" + companyIds +
			"}";
	}
}
